Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added error events #43

Merged
merged 2 commits into from
Mar 15, 2018
Merged

Added error events #43

merged 2 commits into from
Mar 15, 2018

Conversation

alvarogtx300
Copy link
Collaborator

Now in production mode everytime and error occurs, an event is emitted. #37
You can listen for errors with goblinDB.on('error', function(...))

@alvarogtx300 alvarogtx300 requested a review from Sediug March 14, 2018 20:38
Copy link
Member

@Sediug Sediug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there Alvaro! First of all thanks for the help 👍 💯 !!

I'm gonna suggest a few changes. I suggest we emit an error event always and not just on production mode. It's not a big change and It's good now but I think it's kind of complicated for no good reason, I prefer to trigger an event always, it's easier to understand for the final user.

Copy link
Member

@Sediug Sediug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🥇

@Sediug Sediug merged commit 319c8e8 into GoblinDBRocks:dev Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants